package com.yuanchu.store.dao;

import com.yuanchu.store.entity.YoshopPageEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * 店铺页面记录表
 * 
 * @author adan
 * @email 2028038953@gmail.com
 * @date 2023-12-19 20:57:23
 */
@Mapper
public interface YoshopPageDao extends BaseMapper<YoshopPageEntity> {

    @Update("UPDATE yoshop_page SET page_type = CASE WHEN page_id = #{pageId} THEN 10 ELSE 20 END;")
    Integer setPageHome(Integer pageId);
}
